package com.jnks.pojo.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Objects;

/***
 *  @describe 无人经过的重点单位
 *  @author Ryo
 *  @date 2024/4/23
 *  杰能科世智能安全科技（杭州）有限公司
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DroneCompany implements Serializable {

    private Integer companyId;

    private String companyName;

    /**
     * @describe 反恐等级
     * @author Ryo
     * @date 2024/4/23
     */
    private Integer levelId;

    /**
     * @describe 行业ID
     * @author Ryo
     * @date 2024/4/23
     */
    private Integer industryId;

    /**
     * @describe 目标单位各级防御圈（对应数据字典）
     * @author Ryo
     * @date 2024/4/23
     */
    private Integer defenseType;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        DroneCompany droneCompany = (DroneCompany) o;
        return Objects.equals(defenseType, droneCompany.defenseType) && Objects.equals(companyId, droneCompany.companyId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(defenseType, companyId);
    }

}
